/**
 * Writed by yura and mak
 */

package wz.legend.handlers.auction;

/**
 * User: yura
 */
public class BuyProduct implements Comparable {
    private String name;
    private Integer level;
    private Integer amount;
    private Integer cost;
    private Integer qualityLow;
    private Integer qualityHi;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getCost() {
        return cost;
    }

    public void setCost(Integer cost) {
        this.cost = cost;
    }

    public Integer getQualityLow() {
        return qualityLow;
    }

    public void setQualityLow(Integer qualityLow) {
        this.qualityLow = qualityLow;
    }

    public Integer getQualityHi() {
        return qualityHi;
    }

    public void setQualityHi(Integer qualityHi) {
        this.qualityHi = qualityHi;
    }

    public int compareTo(Object o) {
        BuyProduct product = (BuyProduct)o;
        return getName().compareTo(product.getName());
    }
}
